import { request } from '../request.js'
const shoppingtrolley = {
	initData (params) {
	  return request({
	    method: 'Get',
	    url: '/api/goods/front/cart',
	    params: params
	  })
	},
	saveBatch(params) {
	  return request({
	    method: 'Post',
	    url: '/api/goods/front/goodsconcern/saveBatch/'+params,
	    params: params
	  })
	},
	delBatch(params) {
	  return request({
	    method: 'Post',
	    url: '/api/goods/front/cart/del/'+params,
	    params: params
	  })
	},
	cancelItem(params) {
	  return request({
	    method: 'Post',
	    url: '/api/goods/front/cart/cancelItem/'+params
	    
	  })
	},
	selectItem(params) {
	  return request({
	    method: 'Post',
	    url: '/api/goods/front/cart/selectItem/'+params,
	    // params: params
	  })
	},
	cancelAllItem(params) {
	  return request({
	    method: 'Post',
	    url: '/api/goods/front/cart/cancelAllItem/',
	    // params: params
	  })
	},
	selectAllItem(params) {
	  return request({
	    method: 'Post',
	    url: '/api/goods/front/cart/selectAllItem/',
	    // params: params
	  })
	},
	}
export default shoppingtrolley